<html>
<head>
    <meta charset="UTF-8">
    <title>数据服务模型查看</title>
    <link id="easyuiTheme"  href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
    <link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
    <link href="../../static/css/esaas-easyui-edit.css" rel="stylesheet" type="text/css"/>
    <script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../static/easyui/jquery.cookie.js" type="text/javascript"></script>
    <script src="../../static/easyui/ui-theme.js" type="text/javascript"></script>
    <script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
    <script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
    <script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
    <script src="../../ffres/dict/all.js" type="text/javascript"></script>
    <a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">
<form id="ff" method="post">
    <div class="esaas-info-title">数据服务模型信息</div>
    <table class="esaas-info-edit-table">
        <tr hidden>
            <td width="25%" align="right">数据服务模型标识：</td>
            <td width="75%"><input class="easyui-textbox" type="text" disabled
                                   name="appModelId" data-options="required:true"
                                   style="width: 100%; height: 25px;"></input></td>
        </tr>
        <tr>
            <td width="15%" align="right">数据服务模型代码：</td>
            <td width="35%"><input class="easyui-textbox" type="text" disabled
                                   name="appModelCode" data-options="required:true"
                                   style="width: 100%; height: 25px;"></input></td>
            <td width="15%" align="right">数据服务模型名称：</td>
            <td width="35%"><input class="easyui-textbox" type="text" disabled
                                   name="appModelName" data-options="required:true"
                                   style="width: 100%; height: 25px;"></input></td>
        </tr>
        <tr>
            <td width="15%" align="right">数据服务模型分类：</td>
            <td width="35%"><select class="easyui-combobox" disabled
                                    id="appModelCatalog" name="appModelCatalog"
                                    style="width: 100%; height: 25px;"
                                    data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:APP_MODEL_CATALOG">
            </select></td>
            <td width="15%" align="right">数据服务模型类型：</td>
            <td width="35%"><select class="easyui-combobox" disabled
                                    id="appModelType" name="appModelType"
                                    style="width: 100%; height: 25px;"
                                    data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:APP_MODEL_TYPE"/>
            </td>
        </tr>
        <tr>
            <td width="15%" align="right">表模型代码：</td>
            <td width="35%"><input class="easyui-textbox" type="text" disabled
                                   id="tableModelCode" name="tableModelCode" data-options="required:true"
                                   style="width: 100%; height: 25px;"></td>
            <td width="15%" align="right">表模型名称：</td>
            <td width="35%"><input class="easyui-textbox" type="text" disabled
                                   id="tableModelName" name="tableModelName" data-options="required:false"
                                   style="width: 100%; height: 25px;"></input></td>
        </tr>
        <tr hidden>
            <td width="15%" align="right">应用唯一标识：</td>
            <td width="35%"><input class="easyui-textbox" type="text" disabled
                                   id="appId" name="appId" data-options="required:false"
                                   style="width: 100%; height: 25px;"></input></td>
        </tr>
    </table>
    <div style="display: none;">
        <input class="easyui-textbox" type="text" readonly
               id="tableModelId" name="tableModelId" data-options="required:false"
               style="width: 100%; height: 25px;"></input>
    </div>
</form>
<div style="text-align: center; padding: 15px">
  <a href="javascript:void(0)" class="easyui-linkbutton" onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
</div>
<script>
    var appId = $.getUrlParam('appId');
    var appModelId = $.getUrlParam('appModelId');
    $(function() {
        $.restfulGet('../../api/app/model/info/'+ appModelId,null,function(data){
            $('#ff').form('load', {
                appModelCode : data.rows.appModelCode,
                appModelId : data.rows.appModelId,
                appModelName : data.rows.appModelName,
                appModelCatalog : data.rows.appModelCatalog,
                appModelType : data.rows.appModelType,
                tableModelCode : data.rows.tableModelCode,
                tableModelName : data.rows.tableModelName,
                appId : data.rows.appId,
                tableModelId : data.rows.tableModelId,

            });
        });
    });
    function closeForm() {
        window.parent.JLEUtil.closewin();
    }
</script>
</body>
</html>
